package controlador;

import java.io.Serializable;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

import dao.FacturaDAO;
import dominio.Factura;
import dto.FacturaTO;
import remoto.IGestionFacturas;

public class GestionFacturas extends UnicastRemoteObject implements IGestionFacturas, Serializable {
	private static final long serialVersionUID = 1L;

	public GestionFacturas() throws RemoteException {
		super();
	}

	@Override
	public int guardarFactura(FacturaTO f) throws RemoteException {
		return FacturaDAO.getInstance().guardarFactura(Factura.fromDTO(f));
	}
}